Optimal. Leaf size=148 \[ \frac {105 c^5 x}{2 a^2}+\frac {35 c^5 \cos ^3(e+f x)}{a^2 f}+\frac {105 c^5 \cos (e+f x) \sin (e+f x)}{2 a^2 f}-\frac {2 a^4 c^5 \cos ^9(e+f x)}{3 f (a+a \sin (e+f x))^6}+\frac {6 a^2 c^5 \cos ^7(e+f x)}{f (a+a \sin (e+f x))^4}+\frac {42 c^5 \cos ^5(e+f x)}{f (a+a \sin (e+f x))^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 148, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {2815, 2759,
2761, 2715, 8} \begin {gather*} -\frac {2 a^4 c^5 \cos ^9(e+f x)}{3 f (a \sin (e+f x)+a)^6}+\frac {35 c^5 \cos ^3(e+f x)}{a^2 f}+\frac {6 a^2 c^5 \cos ^7(e+f x)}{f (a \sin (e+f x)+a)^4}+\frac {105 c^5 \sin (e+f x) \cos (e+f x)}{2 a^2 f}+\frac {105 c^5 x}{2 a^2}+\frac {42 c^5 \cos ^5(e+f x)}{f (a \sin (e+f x)+a)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2715
Rule 2759
Rule 2761
Rule 2815
Rubi steps
\begin {align*} \int \frac {(c-c \sin (e+f x))^5}{(a+a \sin (e+f x))^2} \, dx &=\left (a^5 c^5\right ) \int \frac {\cos ^{10}(e+f x)}{(a+a \sin (e+f x))^7} \, dx\\ &=-\frac {2 a^4 c^5 \cos ^9(e+f x)}{3 f (a+a \sin (e+f x))^6}-\left (3 a^3 c^5\right ) \int \frac {\cos ^8(e+f x)}{(a+a \sin (e+f x))^5} \, dx\\ &=-\frac {2 a^4 c^5 \cos ^9(e+f x)}{3 f (a+a \sin (e+f x))^6}+\frac {6 a^2 c^5 \cos ^7(e+f x)}{f (a+a \sin (e+f x))^4}+\left (21 a c^5\right ) \int \frac {\cos ^6(e+f x)}{(a+a \sin (e+f x))^3} \, dx\\ &=-\frac {2 a^4 c^5 \cos ^9(e+f x)}{3 f (a+a \sin (e+f x))^6}+\frac {6 a^2 c^5 \cos ^7(e+f x)}{f (a+a \sin (e+f x))^4}+\frac {42 c^5 \cos ^5(e+f x)}{f (a+a \sin (e+f x))^2}+\frac {\left (105 c^5\right ) \int \frac {\cos ^4(e+f x)}{a+a \sin (e+f x)} \, dx}{a}\\ &=\frac {35 c^5 \cos ^3(e+f x)}{a^2 f}-\frac {2 a^4 c^5 \cos ^9(e+f x)}{3 f (a+a \sin (e+f x))^6}+\frac {6 a^2 c^5 \cos ^7(e+f x)}{f (a+a \sin (e+f x))^4}+\frac {42 c^5 \cos ^5(e+f x)}{f (a+a \sin (e+f x))^2}+\frac {\left (105 c^5\right ) \int \cos ^2(e+f x) \, dx}{a^2}\\ &=\frac {35 c^5 \cos ^3(e+f x)}{a^2 f}+\frac {105 c^5 \cos (e+f x) \sin (e+f x)}{2 a^2 f}-\frac {2 a^4 c^5 \cos ^9(e+f x)}{3 f (a+a \sin (e+f x))^6}+\frac {6 a^2 c^5 \cos ^7(e+f x)}{f (a+a \sin (e+f x))^4}+\frac {42 c^5 \cos ^5(e+f x)}{f (a+a \sin (e+f x))^2}+\frac {\left (105 c^5\right ) \int 1 \, dx}{2 a^2}\\ &=\frac {105 c^5 x}{2 a^2}+\frac {35 c^5 \cos ^3(e+f x)}{a^2 f}+\frac {105 c^5 \cos (e+f x) \sin (e+f x)}{2 a^2 f}-\frac {2 a^4 c^5 \cos ^9(e+f x)}{3 f (a+a \sin (e+f x))^6}+\frac {6 a^2 c^5 \cos ^7(e+f x)}{f (a+a \sin (e+f x))^4}+\frac {42 c^5 \cos ^5(e+f x)}{f (a+a \sin (e+f x))^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.49, size = 276, normalized size = 1.86 \begin {gather*} \frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) (c-c \sin (e+f x))^5 \left (256 \sin \left (\frac {1}{2} (e+f x)\right )-128 \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )-1664 \sin \left (\frac {1}{2} (e+f x)\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^2+630 (e+f x) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3+285 \cos (e+f x) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3-\cos (3 (e+f x)) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3-21 \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3 \sin (2 (e+f x))\right )}{12 f \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^{10} (a+a \sin (e+f x))^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.41, size = 138, normalized size = 0.93
method | result | size |
derivativedivides | \(\frac {2 c^{5} \left (-\frac {64}{3 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}+\frac {32}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{2}}+\frac {48}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1}+\frac {\frac {7 \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2}+23 \left (\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )+48 \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-\frac {7 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{2}+\frac {71}{3}}{\left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{3}}+\frac {105 \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2}\right )}{f \,a^{2}}\) | \(138\) |
default | \(\frac {2 c^{5} \left (-\frac {64}{3 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}+\frac {32}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{2}}+\frac {48}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1}+\frac {\frac {7 \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2}+23 \left (\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )+48 \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-\frac {7 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{2}+\frac {71}{3}}{\left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{3}}+\frac {105 \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2}\right )}{f \,a^{2}}\) | \(138\) |
risch | \(\frac {105 c^{5} x}{2 a^{2}}+\frac {7 i c^{5} {\mathrm e}^{2 i \left (f x +e \right )}}{8 f \,a^{2}}+\frac {95 c^{5} {\mathrm e}^{i \left (f x +e \right )}}{8 a^{2} f}+\frac {95 c^{5} {\mathrm e}^{-i \left (f x +e \right )}}{8 a^{2} f}-\frac {7 i c^{5} {\mathrm e}^{-2 i \left (f x +e \right )}}{8 f \,a^{2}}+\frac {256 i c^{5} {\mathrm e}^{i \left (f x +e \right )}+160 c^{5} {\mathrm e}^{2 i \left (f x +e \right )}-\frac {416 c^{5}}{3}}{f \,a^{2} \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )^{3}}-\frac {c^{5} \cos \left (3 f x +3 e \right )}{12 a^{2} f}\) | \(170\) |
norman | \(\frac {\frac {3675 c^{5} x \left (\tan ^{8}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a}+\frac {2625 c^{5} x \left (\tan ^{9}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a}+\frac {840 c^{5} x \left (\tan ^{10}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{a}+\frac {420 c^{5} x \left (\tan ^{11}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{a}+\frac {315 c^{5} x \left (\tan ^{12}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a}+\frac {105 c^{5} x}{2 a}+\frac {323 c^{5} \left (\tan ^{11}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{a f}+\frac {105 c^{5} x \left (\tan ^{13}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a}+\frac {103 c^{5} \left (\tan ^{12}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{a f}+\frac {2983 c^{5} \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 a f}+\frac {5593 c^{5} \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 a f}+\frac {7385 c^{5} \left (\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 a f}+\frac {10694 c^{5} \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 a f}+\frac {9490 c^{5} \left (\tan ^{6}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 a f}+\frac {10270 c^{5} \left (\tan ^{7}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 a f}+\frac {6596 c^{5} \left (\tan ^{8}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 a f}+\frac {1655 c^{5} \left (\tan ^{9}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{a f}+\frac {2311 c^{5} \left (\tan ^{10}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 a f}+\frac {420 c^{5} x \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{a}+\frac {840 c^{5} x \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{a}+\frac {2625 c^{5} x \left (\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a}+\frac {3675 c^{5} x \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a}+\frac {2100 c^{5} x \left (\tan ^{6}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{a}+\frac {2100 c^{5} x \left (\tan ^{7}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{a}+\frac {315 c^{5} x \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{2 a}+\frac {391 c^{5} \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{a f}+\frac {494 c^{5}}{3 a f}}{\left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{5} a \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}\) | \(574\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 1418 vs.
\(2 (151) = 302\).
time = 0.57, size = 1418, normalized size = 9.58 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 252, normalized size = 1.70 \begin {gather*} -\frac {2 \, c^{5} \cos \left (f x + e\right )^{5} + 19 \, c^{5} \cos \left (f x + e\right )^{4} - 106 \, c^{5} \cos \left (f x + e\right )^{3} + 630 \, c^{5} f x - 64 \, c^{5} - 7 \, {\left (45 \, c^{5} f x - 77 \, c^{5}\right )} \cos \left (f x + e\right )^{2} + {\left (315 \, c^{5} f x + 598 \, c^{5}\right )} \cos \left (f x + e\right ) - {\left (2 \, c^{5} \cos \left (f x + e\right )^{4} - 17 \, c^{5} \cos \left (f x + e\right )^{3} - 630 \, c^{5} f x - 123 \, c^{5} \cos \left (f x + e\right )^{2} - 64 \, c^{5} - {\left (315 \, c^{5} f x + 662 \, c^{5}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{6 \, {\left (a^{2} f \cos \left (f x + e\right )^{2} - a^{2} f \cos \left (f x + e\right ) - 2 \, a^{2} f - {\left (a^{2} f \cos \left (f x + e\right ) + 2 \, a^{2} f\right )} \sin \left (f x + e\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 3641 vs.
\(2 (144) = 288\).
time = 15.58, size = 3641, normalized size = 24.60 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 203, normalized size = 1.37 \begin {gather*} \frac {\frac {315 \, {\left (f x + e\right )} c^{5}}{a^{2}} + \frac {2 \, {\left (309 \, c^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{8} + 969 \, c^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{7} + 1693 \, c^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} + 3027 \, c^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} + 2901 \, c^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + 3247 \, c^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 1995 \, c^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 1173 \, c^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 494 \, c^{5}\right )}}{{\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{3} a^{2}}}{6 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 10.86, size = 372, normalized size = 2.51 \begin {gather*} \frac {105\,c^5\,x}{2\,a^2}-\frac {\frac {105\,c^5\,\left (e+f\,x\right )}{2}+\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (\frac {315\,c^5\,\left (e+f\,x\right )}{2}-\frac {c^5\,\left (945\,e+945\,f\,x+2346\right )}{6}\right )-\frac {c^5\,\left (315\,e+315\,f\,x+988\right )}{6}+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^8\,\left (\frac {315\,c^5\,\left (e+f\,x\right )}{2}-\frac {c^5\,\left (945\,e+945\,f\,x+618\right )}{6}\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^7\,\left (315\,c^5\,\left (e+f\,x\right )-\frac {c^5\,\left (1890\,e+1890\,f\,x+1938\right )}{6}\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\,\left (315\,c^5\,\left (e+f\,x\right )-\frac {c^5\,\left (1890\,e+1890\,f\,x+3990\right )}{6}\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6\,\left (525\,c^5\,\left (e+f\,x\right )-\frac {c^5\,\left (3150\,e+3150\,f\,x+3386\right )}{6}\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3\,\left (525\,c^5\,\left (e+f\,x\right )-\frac {c^5\,\left (3150\,e+3150\,f\,x+6494\right )}{6}\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4\,\left (630\,c^5\,\left (e+f\,x\right )-\frac {c^5\,\left (3780\,e+3780\,f\,x+5802\right )}{6}\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5\,\left (630\,c^5\,\left (e+f\,x\right )-\frac {c^5\,\left (3780\,e+3780\,f\,x+6054\right )}{6}\right )}{a^2\,f\,{\left ({\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )+1\right )}^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________